package com.fangxing.module.user.entity;

import com.fangxing.base.entity.BaseEntity;
import com.fangxing.base.entity.IdEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;


@Data
@Entity
public class AccountEntity extends IdEntity {
    @Column(unique = true, nullable = true)
    private String username;
    @Column(unique = true, nullable = true)
    private String cellphone;
    @Column(unique = true, nullable = true)
    private String email;
    private String password;
    private String salt;
    private Boolean active;
    private Boolean lock;

}
